home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / StartMUD < prev    next >
AmigaDOS Script File  |  2001-08-08  |  1KB  |  69 lines

  1. .key OPT/F
  2.  
  3. ;*************************************
  4. ;*                                   *
  5. ;*  StartMUD - ldmud startup script  *
  6. ;*        (C)2001 Niels Böhm         *
  7. ;*                                   *
  8. ;*    change whatever you like :)    *
  9. ;*                                   *
  10. ;*************************************
  11.  
  12. FailAt 21
  13.  
  14. Version >NIL: bsdsocket.library
  15. IF FAIL
  16.  Version >NIL: socket.library
  17.  IF FAIL
  18.   Echo Please start your TCP/IP stack first!
  19.   Quit 20
  20.  ENDIF
  21.  IF EXISTS LIBS:socket.library
  22.   Echo Please start your TCP/IP stack first!
  23.   Quit 20
  24.  ENDIF
  25. ENDIF
  26.  
  27. Assign >NIL: mud: EXISTS
  28. IF WARN
  29.  Set §ldmud§mud§remove 1
  30.  Assign mud: ""
  31. ENDIF
  32.  
  33. Assign >NIL: tmp: EXISTS
  34. IF WARN
  35.  Set §ldmud§tmp§remove 1
  36.  IF EXISTS mud:tmp
  37.   Assign tmp: mud:tmp
  38.  ELSE
  39.   IF EXISTS SYS:t
  40.    Assign tmp: SYS:t
  41.   ELSE
  42.    Assign tmp: T:
  43.   ENDIF
  44.  ENDIF
  45. ENDIF
  46. Delete >NIL: tmp:LP_SWAP.3#? QUIET FORCE
  47.  
  48. Set §ldmud§opt ""
  49. IF NOT EXISTS mud:lib
  50.  IF EXISTS mud:mudlib/test_master.c
  51.   Set §ldmud§opt -m /mud/mudlib -M /test_master
  52.  ENDIF
  53. ENDIF
  54.  
  55. mud:bin/driver $§ldmud§opt <OPT>
  56.  
  57. Unset §ldmud§opt
  58.  
  59. Delete >NIL: tmp:LP_SWAP.3#? QUIET FORCE
  60. IF $§ldmud§tmp§remove EQ 1
  61.  Assign tmp:
  62.  Unset §ldmud§tmp§remove
  63. ENDIF
  64.  
  65. IF $§ldmud§mud§remove EQ 1
  66.  Assign mud:
  67.  Unset §ldmud§mud§remove
  68. ENDIF
  69.